package validation.i18n.controller;

import jakarta.validation.Valid;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import validation.i18n.entity.param.UserParam;


/**
 * @Author: Dcsgo
 * @CreateTime: 2024-06-10
 * @Description:
 * @Version: 1.0
 */

@Slf4j
@RestController
@RequestMapping("/user")
public class UserController {
    @PostMapping("add")
    public ResponseEntity<UserParam> add(@Valid @RequestBody UserParam userParam) {
        return ResponseEntity.ok(userParam);
    }
}
